/*
 * TestRecord.cpp
 *
 *  Created on: Nov 2, 2013
 *      Author: SG0214746
 */

#include "TestRecord.h"

TestRecord::TestRecord() : id(-1) {}

TestRecord::TestRecord(BigInt id) : id(id) {}

TestRecord::~TestRecord() {}

const BigInt& TestRecord::getId() const {
	return id;
}

TestRecord& TestRecord::operator =(const TestRecord& other) {
	id = other.id;
	return *this;
}

TestRecord::TestRecord(const TestRecord& copy) {
	id = copy.id;
}

BigInt TestRecord::size() const {
	return sizeof(BigInt);
}

void TestRecord::serialize(ISerializer& serializer) const {
	serializer.serializeUnsignedLongInt(id);
}

void TestRecord::unserialize(IUnserializer& unserializer) {
	id = unserializer.unserializeUnsignedLongInt();
}
